package com.yonyougov.devops.cruxcisupport.k8s.deployment;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * 创建Deployment需要的参数
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeploymentRequest {
    private String nameSpace;
    private String metadataName;
    //实例数
    private Integer replicas;
    //标签
    private Map<String, String> labels;
    //选择标签
    private Map<String, String> matchLabels;
    //容器名称
    private String containerName;
    //镜像
    private String imageName;
    //健康检查
    private HealthCheckContext healthCheckContext;
    //环境变量
    private List<EnvInfo> envContext;
    // 生命周期
    private LifecycleContext lifecycleContext;
}
